/****************************************************************************

Tallulah - Projeto LES

****************************************************************************/

#ifndef FORMEDITOR_H
#define FORMEDITOR_H

#include <QMainWindow>
#include <QTabWidget>

QT_BEGIN_NAMESPACE
class QAction;
class QMenu;
class QMdiSubWindow;
class QSignalMapper;
QT_END_NAMESPACE

class FormEditor : public QMainWindow
{
    Q_OBJECT

public:
    FormEditor(QWidget* parent, Qt::WindowFlags flags);

protected:
    void closeEvent(QCloseEvent *event);

private slots:
    void newFile();
    void open();
    void save();
    void saveAs();
    void closeFile();
    void closeAll();
    void updateMenus(int index);

private:
    void createActions();
    void createMenus();
    void createToolBars();
    void createStatusBar();

    int sequenceNumber;

    QTabWidget *tabArea;

    QToolBar *fileToolBar;
    QAction *newAct;
    QAction *openAct;
    QAction *saveAct;
    QAction *saveAsAct;
    QAction *exitAct;
    QAction *closeAct;
    QAction *closeAllAct;
};

#endif
